package com.leon.learnenginespace.JVM;

import io.micrometer.core.lang.Nullable;

import java.util.Map;

/**
 * @description: TODO
 * @author: WT
 * @date: 2025/1/10 15:20
 * @Version 1.0
 **/
public class AnnotationConfigApplicationContext {
    Map<String, BeanDefinition> beans;

    // 根据Name查找BeanDefinition，如果Name不存在，返回null
    @Nullable
    public BeanDefinition findBeanDefinition(String name) {
        return this.beans.get(name);
    }
}